const Response = {
  success(data = null, message = 'success') {
    return {
      code: 200,
      data,
      message
    };
  },
  
  error(code = 500, message = 'error', data = null) {
    return {
      code,
      data,
      message
    };
  }
};

module.exports = Response;